package org.cs.mgr.before.service.impl;

import java.util.List;
import java.util.Map;

import org.cs.core.service.impl.BaseService;
import org.cs.mgr.before.dao.IExcellentSelectorDao;
import org.cs.mgr.before.model.ExcellentSelector;
import org.cs.mgr.before.service.IExcellentSelectorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("excellentSelectorService")
public class ExcellentSelectorService extends BaseService<ExcellentSelector> implements IExcellentSelectorService{

	//注入dao
	@Autowired
	IExcellentSelectorDao   iExcellentSelectorDao;
	//通过goods_id,查询excellent_selector表(优选师表)
	@Override
	public  List<Map<String, Object>> getExcellentSelectorOne(String id) {
		 List<Map<String, Object>> excellentSelectorOne = iExcellentSelectorDao.getExcellentSelectorOne(id);
		return excellentSelectorOne;
	}
	//通过excellent_selector表的ID,查excellent_selector_recommend表和goods表，返回list<Goods>
	@Override
	public List<Map<String, Object>> getRecommendGoods(String id) {
		List<Map<String, Object>> recommendGoods = iExcellentSelectorDao.getRecommendGoods(id);
		return recommendGoods;
	}

	
}
